Replacing some semi-bad python