Reformats terrain.py
Cleans main.py.
Reformats main.py
Disable VSync.

The game crashes under Linux with VSync.
Since it has nearly no impact on rendering, this is better
to disable it than to lose potential contributors/fans.
Makes block.py more explicit.
Fix from the previous commit.