Converting hbhkpytob static into dynamic