changing syntax to be standard python

2 space indentation? semi-colons?