Added some python3 checks