moved type conversions into separate file
added PyDict