handles working in python