Update python_reference, Clean up imports