Python modifications