Merged bugfixes from pyethereum/compiler

Most of these are due to syntax changes in python3.x