Fix Python 3 compatibility and codestyle
Main changes:
- Python 3 compatibility
- Fix missing imports
- Explicit imports of keras layers to make it easier for beginners to understand where functions come from
- Make code PEP8 compliant ;)
Aufgrund einer Wartung am 18.11.2025 von 8:00 bis 09:00 Uhr werden git.rwth-aachen.de & git-ce.rwth-aachen.de zeitweise nicht zur Verfügung stehen. --en-- Due to maintenance at 18.11.2025 from 8:00 to 09:00, git.rwth-aachen.de & git-ce.rwth-aachen.de will be temporarily unavailable.
Main changes: