python script ready for testing