made some things more pythonic and removed unsupported methods