In order to run multiple commands in docker at once, use /bin/bash -c with a semicolon ';'
For example:
docker run image /bin/bash -c "cd /some/path; python a.py"
In this case, the second command (python) will be executed only if the first command (cd) returns no error or exit status. To avoid this use '&&' instead of ';' (semi-colon)
For example:
docker run image /bin/bash -c "cd /some/path && python a.py"