Python version fixes