removed py33 from tests
fix many style fixes and bugs