Some python updates from @machinalis repos