Python code

Had a hard time making ugly Python...