fixed some python related stuff