Removed Python2 support and applied some coding standards