put micro code and python code together